<?php

namespace App\Http\Requests\Store;

use App\Http\Requests\BaseRequest;

class LoginRequest extends BaseRequest
{
    /**
     * Determine if the user is authorized to make this request.
     *
     * @return bool
     */
    public function authorize()
    {
        return true;
    }

    /**
     * Get the validation rules that apply to the request.
     *
     * @return array
     */
    public function rules()
    {
        return [
            'id'         => 'required|integer|exists:stores,id',
            'store_pass' => 'required',
        ];
    }

    public function messages()
    {
        return [
            'store_pass.required' => '请输入密码',
        ];
    }
}
